package com.upb.webserver.common.pojo.account.developer;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * user registration information of the developer platform.
 */
@Data
public class ReqDeveloperRegisterVO {
    @NotBlank
    @Length(max = 250)
    private String account;
    @NotNull
    @Length(max = 250)
    private String companyName;
    @NotBlank
    @Length(max = 125)
    private String password;
    @NotBlank
    @Length(max = 250)
    private String realName;
//    @Email
    @Length(max = 50)
    private String email;
    @DecimalMax(value = "99999999999", message = "mobile value are not match")
//    @DecimalMin(value = "10000000000",message = "mobile value are not match")
//    @NotNull(message = "mobile value are empty")
    private Long mobile;
    private String address;
}
